Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Parse error occurs before PHP version check #6327

Merged
merged 1 commit into from
Aug 3, 2022

Conversation

kenjis
Copy link
Member

@kenjis kenjis commented Aug 1, 2022

Description
Fixes #6306

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

If we use new syntax in new PHP version when dropping older PHP version support,
syntax error occurs before the PHP version check.
@kenjis kenjis added the bug Verified issues on the current code behavior or pull requests that will fix them label Aug 1, 2022
@@ -962,6 +950,7 @@ protected function display404errors(PageNotFoundException $e)
ob_end_flush(); // @codeCoverageIgnore
}

// Throws new PageNotFoundException and remove exception message on production.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this got scooped up by mistake?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, yes. It is not related to this PR.

@totoprayogo1916
Copy link
Contributor

then https://github.com/kenjis/CodeIgniter4/blob/6ac3a7bfe48e72b687c5727cd60f88b9724da4ac/system/Language/en/Core.php#L17
should be removed

@kenjis kenjis merged commit 71edcc9 into codeigniter4:develop Aug 3, 2022
@kenjis kenjis deleted the fix-php-version-check branch August 3, 2022 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Verified issues on the current code behavior or pull requests that will fix them
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Parse error: syntax error, unexpected '_536_000' (T_STRING), expecting ')'
3 participants